<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>确认支付</title>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <script src="https://cdn.tailwindcss.com"></script>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#2196F3',
                        'primary-light': '#64B5F6',
                        'primary-dark': '#1976D2'
                    }
                }
            }
        }
    </script>
    <style>
        .btn-gradient {
            background: linear-gradient(to right, #2196F3, #1E88E5);
        }
    </style>
</head>
<body class="w-[375px] min-h-[762px] mx-auto bg-white">
    <!-- 顶部导航 -->
    <nav class="fixed top-0 w-full bg-white shadow-sm z-50">
        <div class="flex items-center justify-between px-4 h-[44px]">
            <button class="text-gray-600">
                <i class="fas fa-arrow-left text-lg"></i>
            </button>
            <h1 class="text-lg font-medium">确认支付</h1>
            <div class="w-8"></div>
        </div>
    </nav>

    <main class="pt-[60px] pb-[80px] px-4">
        <!-- 订单信息 -->
        <div class="bg-gray-50 rounded-xl p-4 mb-6">
            <div class="flex justify-between items-center mb-4">
                <h2 class="text-base font-medium">订单信息</h2>
            </div>
            <div class="space-y-3">
                <div class="flex justify-between text-sm">
                    <span class="text-gray-500">商品名称</span>
                    <span>月度会员（30天）</span>
                </div>
                <div class="flex justify-between text-sm">
                    <span class="text-gray-500">会员时长</span>
                    <span>30天</span>
                </div>
                <div class="flex justify-between text-sm">
                    <span class="text-gray-500">支付金额</span>
                    <span class="text-xl font-medium text-primary">¥29.9</span>
                </div>
            </div>
        </div>

        <!-- 卡密兑换 -->
        <div class="mb-6">
            <h2 class="text-base font-medium mb-4">卡密兑换</h2>
            <div class="flex">
                <input type="text" 
                       placeholder="请输入卡密兑换码" 
                       class="flex-1 h-[44px] px-4 border rounded-l-xl focus:outline-none focus:border-primary">
                <button class="bg-primary text-white px-6 h-[44px] rounded-r-xl hover:bg-primary-dark transition-colors">
                    兑换
                </button>
            </div>
        </div>

        <!-- 支付方式 -->
        <div class="mb-6">
            <h2 class="text-base font-medium mb-4">支付方式</h2>
            <div class="flex items-center justify-between p-4 border rounded-xl">
                <div class="flex items-center">
                    <i class="fab fa-weixin text-[#07C160] text-2xl"></i>
                    <span class="ml-3">微信支付</span>
                </div>
                <i class="fas fa-check-circle text-primary"></i>
            </div>
        </div>
    </main>

    <!-- 底部支付按钮 -->
    <div class="fixed bottom-0 left-0 w-full bg-white border-t px-4 py-3">
        <div class="flex items-center justify-between mb-2">
            <span class="text-sm text-gray-500">实付金额</span>
            <span class="text-xl font-medium text-primary">¥29.9</span>
        </div>
        <button class="w-full h-[44px] btn-gradient text-white rounded-xl hover:opacity-90 transition-opacity">
            立即支付
        </button>
    </div>
</body>
</html>